import request from '@/utils/request'

// 查询流程步骤列表
export function listContentCaseStep(query) {
  return request({
    url: '/contentCaseStep/contentCaseStep/list',
    method: 'get',
    params: query
  })
}

// 查询流程步骤详细
export function getContentCaseStep(stepId) {
  return request({
    url: '/contentCaseStep/contentCaseStep/' + stepId,
    method: 'get'
  })
}

// 新增流程步骤
export function addContentCaseStep(data) {
  return request({
    url: '/contentCaseStep/contentCaseStep',
    method: 'post',
    data: data
  })
}

// 修改流程步骤
export function updateContentCaseStep(data) {
  return request({
    url: '/contentCaseStep/contentCaseStep',
    method: 'put',
    data: data
  })
}

// 删除流程步骤
export function delContentCaseStep(stepId) {
  return request({
    url: '/contentCaseStep/contentCaseStep/' + stepId,
    method: 'delete'
  })
}
